package be.jprojects.subscription.logic;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import be.jprojects.subscription.logic.interfaces.ICity;
import be.jprojects.subscription.logic.interfaces.ICountry;
import be.jprojects.subscription.logic.interfaces.IProvince;


public class Province implements IProvince {
	private List<ICity> cities;

	private String name, id;
	private boolean fullyLoaded;
	
	public boolean isFullyLoaded() {
		return fullyLoaded;
	}
	public void setFullyLoaded(boolean fullyLoaded) {
		this.fullyLoaded = fullyLoaded;
	}

	private ICountry country;	
	
	public Province() {
		cities = new ArrayList<ICity>();
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IProvince#getCities()
	 */
	public List<ICity> getCities() {
		return cities;
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IProvince#getName()
	 */
	public String getName() {
		return name;
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IProvince#setName(java.lang.String)
	 */
	public void setName(String name) {
		this.name = name;
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IProvince#getCountry()
	 */
	public ICountry getCountry() {
		return country;
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IProvince#setCountry(be.jprojects.subscription.logic.interfaces.ICountry)
	 */
	public void setCountry(ICountry country) {
		this.country = country;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String toString() {
		return name;
	}
}
